﻿<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" CodeBehind="AtribuicaoAutomatica.aspx.cs"
    Inherits="FiltroMultiploGridview.AtribuicaoAutomatica" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="Scripts/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="tudo">
        <div class="conteudo">
            <form id="form1" runat="server">
            <asp:ScriptManager ID="scmPadrao" EnablePartialRendering="true" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="upp" runat="server">
                <ContentTemplate>
                    <div class="AspNet-GridView">
                        <asp:GridView CssClass="gv selecionavel" ID="gvEmployees" runat="server" 
                            AutoGenerateColumns="False" DataSourceID="sqlEmployees"
                            EnableModelValidation="True" AllowSorting="True">
                            <Columns>
                                <asp:BoundField DataField="Title" HeaderText="Cargo" SortExpression="Title" />
                                <asp:BoundField DataField="BirthDate" HeaderText="BirthDate" SortExpression="BirthDate"
                                    DataFormatString="{0:d}" />
                                <asp:BoundField DataField="MaritalStatus" HeaderText="Marital Status" SortExpression="MaritalStatus" />
                                <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                                <asp:BoundField DataField="HireDate" HeaderText="HireDate" SortExpression="HireDate"
                                    DataFormatString="{0:d}" />
                                <asp:BoundField DataField="VacationHours" HeaderText="VacationHours" SortExpression="VacationHours" />
                                <asp:BoundField DataField="SickLeaveHours" HeaderText="SickLeaveHours" SortExpression="SickLeaveHours" />
                            </Columns>
                            <HeaderStyle CssClass="AspNet-GridView-Header" Wrap="True" />
                        </asp:GridView>
                    </div>
                    <asp:SqlDataSource ID="sqlEmployees" runat="server" ConnectionString="<%$ ConnectionStrings:AdventureWorksConnectionString %>"
                        SelectCommand="retornaEmployees" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                </ContentTemplate>
            </asp:UpdatePanel>
            </form>
        </div>
    </div>
</body>
</html>
